from ClickEntity import ClickEntity

dic = {}

entity = ClickEntity("a")
entity.position.append(2)
entity1 = ClickEntity("b")

dic["a"] = entity
dic['b'] = entity1

update = ['a', 'b','c']

for up in update:
    if up in dic:
        en = dic[up]
        en.position.append(1)
    else:
        entity3 = ClickEntity('c')
        entity3.position.append(1)
        dic[up] = entity3


print(dic)